package edu.nyu.hps.assignment10;

public class MyTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Sudoku game = new Sudoku();
		int[][] myBoard =new int [][] { {5,0,0,0,2,1,0,4,3},
				                        {1,0,0,0,6,0,0,0,8},
				                        {0,0,0,0,0,9,0,0,1},
				                        {0,2,0,0,0,0,0,1,0},
				                        {0,0,0,0,3,0,0,0,0},
				                        {0,0,0,0,8,0,0,0,0},
				                        {0,0,0,0,0,5,0,0,0},
				                        {0,0,0,0,0,7,0,0,0},
				                        {0,0,0,3,0,0,8,0,0}};
		game.board = myBoard.clone();
		game.setBoardValues(game.board,game.myBoard);
		
		System.out.println("The board cells can have following possible values");
		for(int i=0;i<game.myBoard.length;i++) {
			for(int j=0;j<game.myBoard.length;j++) {
				Cell c = game.myBoard[i][j];
				System.out.println("Cell at ( " + i + "," + j + " ) has value " + c.value);
				System.out.print("Possible value: ");
				if(!c.taken) {
					for(int k=0;k<c.possibilities.size();k++) {
						System.out.print(c.possibilities.get(k) + ",");
					}
				}
				System.out.println();
			}
		}
	}
}
